{% extends "base.html" %}

{% block css %}
    <style>
        .table-color {
            border: #1a1e21 solid 1px;
            padding: 5px;
            height: 1.5em;
        }

    </style>
{% endblock %}

{% block main %}
    <div class="container mt-4">
        <form id="form-log" class="form-inline" action="{{ url_full_tag }}" method="post">
            {% csrf_token %}
            <table class="table table-primary">
                <tbody>
                {% for o in cmn_record_objs %}
                    {% if o.opera_type == o.IN %}
                        <tr class="table-primary">
                    {% elif o.opera_type == o.OUT %}
                        <tr class="table-success">
                    {% elif o.opera_type == o.NEW %}
                        <tr class="table-info">
                    {% elif o.opera_type == o.DELETE %}
                        <tr class="table-warning">
                    {% else %}
                        <tr class="table-light">
                    {% endif %}
                        <td>
                        {{ o.info }}
                        </td>
                    </tr>
                {% endfor%}
                </tbody>
            </table>
        </form>
    </div>

{% endblock %}

{% block set_curPage %}
    curPage = document.getElementById("{{ url_name }}")
{% endblock %}

{% block javascript %}

{% endblock %}

